package com.wuyan.locationdog.adapter

import android.widget.TextView
import androidx.annotation.LayoutRes
import com.amap.api.services.core.PoiItemV2
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.wuyan.locationdog.R


class PoiSearchListAdapter(@LayoutRes layoutResId: Int, data: MutableList<PoiItemV2>?) :
    BaseQuickAdapter<PoiItemV2, BaseViewHolder>(layoutResId, data) {


    override fun convert(holder: BaseViewHolder, item: PoiItemV2) {
        holder.apply {
            getView<TextView>(R.id.tvTitle).text = item.title
            getView<TextView>(R.id.tvSubTitle).text = item.snippet

        }
    }
}


